package lab02.test35;

/**
 * Created by 阿阿阿阿豪丶 on 2017/11/22.
 */
public class Test {
    public static void main(String[] args) {
        Manager m=new Manager("张三",8000);
        Salesman s=new Salesman("李四",3000,60,30);
        Worker w=new Worker("王五",28,60);

        System.out.println("经理"+m.getName()+"的工资是"+m.computeSalary());
        System.out.println("销售员"+s.getName()+"的工资是"+s.computeSalary());
        System.out.println("工人"+w.getName()+"的工资是"+w.computeSalary());
    }


}

